
/* Copyright 2018 JDCLOUD.COM

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http:#www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

续费管理
续费管理相关接口

OpenAPI spec version: v2
Contact: 

NOTE: This class is auto generated by the jdcloud code generator program.
*/

#import <Foundation/Foundation.h>

#import <JDCloudOCSDKRenewal/RenewalExecutor.h>


/// 为一个或多个实例设置自动续费服务。
@implementation  RenewalSetRenewalExecutor

-(id) initWithJDCloudClient:(RenewalClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"PUT";
    self.url = @"/regions/{regionId}/instances:autoRenewStatus";
    return self;
}
@end

/// 对相关实例进行续费。调用该接口会创建一个续费订单，并自动扣除您账户可用代金券和余额完成支付，如因为某些原因支付失败，订单会自动取消。
@implementation  RenewalRenewInstanceExecutor

-(id) initWithJDCloudClient:(RenewalClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances:renew";
    return self;
}
@end

/// 提供可续费的实例信息查询。
@implementation  RenewalQueryInstanceExecutor

-(id) initWithJDCloudClient:(RenewalClient*)JDCloudClient
{
    self.jdCloudClient = JDCloudClient;
    self.method = @"POST";
    self.url = @"/regions/{regionId}/instances";
    return self;
}
@end
